/**
 * 2009-9-13 下午09:41:41 
 * esignature
 * com.smc.domain.model
 * User
 */
package com.smc.domain.model;

import java.io.Serializable;
import java.sql.Date;

/**
 * @author chenheng
 * @version 0.0.1
 */
/**
 * @hibernate.mapping
 * schema="esignature"
 * @hibernate.class
 * table="t_user"
 * dynamic-update="true"
 * dynamic-insert="true"
 * select-before-update="true"
 * 用户数据模型
 */
public class User implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5954174972872438493L;
	/**
	 * @hibernate.id
	 * generator-class="uuid"
	 * 主键
	 */
	private String uuid;
	/**
	 * @hibernate.property
	 * not-null="true"
	 * 用户名。
	 */
	private String username ;
	/**
	 * @hibernate.property
	 * not-null="true"
	 * 密码
	 */
	private String password ;
	/**
	 * @hibernate.property 
	 * 邮件
	 */
	private String email ;
	/**
	 * @hibernate.property
	 * 传真 
	 */
	private String fax ;
	/**
	 * @hibernate.property
	 * 电话 
	 */
	private String cellphone ;
	/**
	 * @hibernate.property
	 * 办公电话
	 */
	private String officeTel;
	/**
	 * @hibernate.property
	 * 医院电话 
	 */
	private String hospitalTel;
	/**
	 * @hibernate.property
	 * 家庭电话
	 */
	private String familyTel;
	/**
	 * @hibernate.property
	 * 家庭住址
	 */
	private String homeAddress;
	/**
	 * @hibernate.property
	 * 办公地址
	 */
	private String officeAddress;
	/**
	 * @hibernate.property
	 * 医院地址
	 */
	private String hospitalAddress;
	/**
	 * @hibernate.property
	 * 名
	 */
	private String firstName;
	/**
	 * @hibernate.property
	 * 姓
	 */
	private String lastName;
	/**
	 * @hibernate.property
	 * 生日
	 */
	private Date birthday;
	/**
	 * @hibernate.property
	 * 简介
	 */
	private String introduction;
	/**
	 * @hibernate.property
	 * 头像 
	 */
	private String personalPicture;
	/**
	 * @hibernate.property
	 * 注册时间 
	 */
	private Date registerTime;
	/**
	 * @hibernate.many-to-one
	 * column="hospital_uuid"
	 * 用户对应的医院。一个医院对就多个用户。
	 */
	private Hospital hospital ;
	/**
	 * @hibernate.property
	 * 是否通过管理角色审核
	 */
	private boolean verified ;

	public boolean isVerified() {
		return verified;
	}
	public void setVerified(boolean verified) {
		this.verified = verified;
	}
	public User() {
		
	}
	public User(String uuid,String username) {
		this.uuid = uuid ;
		this.username = username ;
	}
	public String getUuid() {
		return uuid;
	}
	public void setUuid(String uuid) {
		this.uuid = uuid;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getCellphone() {
		return cellphone;
	}
	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getFamilyTel() {
		return familyTel;
	}
	public void setFamilyTel(String familyTel) {
		this.familyTel = familyTel;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getHomeAddress() {
		return homeAddress;
	}
	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}
	public String getHospitalAddress() {
		return hospitalAddress;
	}
	public void setHospitalAddress(String hospitalAddress) {
		this.hospitalAddress = hospitalAddress;
	}
	public String getHospitalTel() {
		return hospitalTel;
	}
	public void setHospitalTel(String hospitalTel) {
		this.hospitalTel = hospitalTel;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String getOfficeAddress() {
		return officeAddress;
	}
	public void setOfficeAddress(String officeAddress) {
		this.officeAddress = officeAddress;
	}
	public String getOfficeTel() {
		return officeTel;
	}
	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPersonalPicture() {
		return personalPicture;
	}
	public void setPersonalPicture(String personalPicture) {
		this.personalPicture = personalPicture;
	}
	public Date getRegisterTime() {
		return registerTime;
	}
	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Hospital getHospital() {
		return hospital;
	}
	public void setHospital(Hospital hospital) {
		this.hospital = hospital;
	}
}
